package com.woniuxy.homepage.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.homepage.core.mapper.CarMycarMapper;
import com.woniuxy.homepage.core.model.CarMycar;
import com.woniuxy.homepage.core.service.CarMycarService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-30
 */
@Service
public class CarMycarServiceImpl extends ServiceImpl<CarMycarMapper, CarMycar> implements CarMycarService {

    @Resource
    private CarMycarMapper mycarMapper;

    @Override
    public List<CarMycar> selectMyCar(Integer userId) {
        List<CarMycar> list = mycarMapper.selectMyCar(userId);
        return list;
    }
}
